from django.urls import path
from . import views
from .view_v2 import *
urlpatterns = [
  path('user/info', views.user, name='userinfo'),
  path('user/signup', views.userSignup, name='signup'),
  path('user/login', views.userLogin, name='login'),
  path('user/logout', views.userLogout, name='logout'),
  path('exesql', views.execSql, name='execSql'),
  path('chart/list', views.chartList, name="chartList"),
  path('chart/create', views.createChart, name="createChart"),
  path('chart/update', views.updateChart, name="updateChart"),
  path('chart/delete', views.deleteChart, name="deleteChart"),
  path('chart/<uuid:chartId>', views.chartDetail, name="chartDetail"),
  path('chartboardmap/boardbychart', views.boardByChart, name="boardByChart"),
  path('dashboard/create', views.createDashboard, name="createDashboard"),
  path('dashboard/update', views.updateDashboard, name="updateDashboard"),
  path('dashboard/delete', views.deleteDashboard, name="deleteDashboard"),
  path('dashboard/<uuid:dashboardId>', views.dashboardDetail, name="dashboardDetail"),
  path('dashboard/list', views.dashboardList, name="dashboardList"),
  path('dashboard/order', views.dashboardOrder, name="dashboardOrder"),
  path('chartboard/map', views.chartBoardMap, name="chartBoardMap"),
  path('chartboard/unmap', views.chartBoardUnmap, name="chartBoardUnmap"),
  path('chartboardmap/chartbydashboard', views.chartByBoard, name="chartByBoard"),
]

urlpatterns += [
  path('import-excel/', ImportExcelView.as_view(), name="import-excel"),
  path('clear-table/', ClearTableDataView.as_view(), name="clear-table"),
  path('show-table-data/', ShowTableDataView.as_view(), name="show-table-data"),
  path('table-list/', TableListView.as_view(), name='table-list'),
  path('table-columns-list/', TableColumnListView.as_view(), name='table-columns-list'),
  path('table-columns-data/', TableColumnDataListView.as_view(), name='table-columns-data'),
]

urlpatterns += [
  path('my-excel-list/', MyExcelListView.as_view(), name="my-excel-list"),
  path('my-image-list/', MyImageListView.as_view(), name="my-image-list"),
]

urlpatterns += [
  path('user/', UserView.as_view(), name="user"),
]


